FROM ubuntu:18.04

# 更新源--中科大源
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
COPY ["./sources.list","/etc/apt/"]
RUN apt-get update -y

# 安装locale并配置中文
RUN apt-get install -y locales
RUN locale-gen zh_CN.UTF-8

# 设置中文环境变量
ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
ENV LANGUAGE zh_CN.UTF-8

# 安装vim和whiptail支持
RUN apt-get install -y vim whiptail

WORKDIR /root/
CMD ["/bin/bash"]
